#ifndef HINTLINEEDIT_H
#define HINTLINEEDIT_H

#include <QLineEdit>

class HintLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    explicit HintLineEdit(QString hintText,QWidget *parent = 0);
    explicit HintLineEdit(QWidget *parent = 0);
    void setHintText(QString str);
    void setText(const QString &text);
    void setEchoMode(EchoMode mode);
signals:

public slots:
    void hintTextEdited(const QString &);
private:
    void enterEvent(QEvent *e);
    QString mHintText;
    void init();
    void setHintStatus();
    void setNormalStatus();
    EchoMode mEchoMode;
};

#endif // HINTLINEEDIT_H
